package runInfo;

public enum Months {
	JAN("Jan"),
	FEB("Feb"),
	MARCH("March"),
	APRIL("April"),
	MAY("May"),
	JUNE("June"),
	JULY("July"),
	AUG("Aug"),
	SEPT("Sept"),
	OCT("Oct"),
	NOV("Nov"),
	DEC("Dec");
	
	private final String _displayName;

	/** constructor */
	Months(final String displayName) {
	    _displayName = displayName;
	}

	/** overrides method toString() in java.lang.Enum class */
	public String toString(){
	     return _displayName;
	}
	
	/** whatever class contains the JComboBox object, could be JFrame, JDialog, etc */
	public class ComboBoxGUI extends javax.swing.JDialog {

	private javax.swing.JComboBox _myComboBox;

	public void createComboBox(){

	_myComboBox = new javax.swing.JComboBox();
	/** model is set to be a new instance of DefaultComboBoxModel. this model
	is initialized with an array of all possible values of E_ExpirationDateIntervals */
	_myComboBox.setModel(new javax.swing.DefaultComboBoxModel(Months.values()));
	}

	/** the combo box will now display the Strings defined in the E_ComboBoxEnum class, in the order that they were defined. */

	/** _myComboBox.getSelectedItem() will return an E_ComboBoxEnum object  (well technically a generic object that can be cast into an E_ComboBoxEnum object) */


	}
	
};
	
	
